# 定义python解释器的路径
PYTHON=G:\programs\py38-flask-project\FlaskVenv\Scripts\python.exe
# 定义要运行的文件
TARGET=app.py

# 运行
.PHONY: run
run:
	$(PYTHON) $(TARGET)

# 安装依赖
install:
	$(PYTHON) -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r requirements.txt 

# 卸载
uninstall:
	$(PYTHON) -m pip uninstall -y -r requirements.txt

# 定义打包工具的路径
installer=E:\programs\py38-flask-project\py38FlaskVenvBackEnd\Scripts\pyinstaller
# 打包
installer:
	$(installer) -F $(TARGET)


pyuic5=E:\programs\py38-flask-project\py38FlaskVenvBackEnd\Scripts\pyuic5

ui2py:
	$(pyuic5) -o ui_mainwindow.py mainwindow.ui